package com.authorization.project.authorization.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.authorization.project.authorization.mapper.SecretversionMapper;
import com.authorization.project.authorization.domain.Secretversion;
import com.authorization.project.authorization.service.ISecretversionService;

/**
 * secretversionService业务层处理
 * 
 * @author 李晓雷
 * @date 2020-04-29
 */
@Service
public class SecretversionServiceImpl implements ISecretversionService 
{
    @Autowired
    private SecretversionMapper secretversionMapper;

    /**
     * 查询secretversion
     * 
     * @param id secretversionID
     * @return secretversion
     */
    @Override
    public Secretversion selectSecretversionById(Long id)
    {
        return secretversionMapper.selectSecretversionById(id);
    }

    /**
     * 查询secretversion列表
     * 
     * @param secretversion secretversion
     * @return secretversion
     */
    @Override
    public List<Secretversion> selectSecretversionList(Secretversion secretversion)
    {
        return secretversionMapper.selectSecretversionList(secretversion);
    }

    /**
     * 新增secretversion
     * 
     * @param secretversion secretversion
     * @return 结果
     */
    @Override
    public int insertSecretversion(Secretversion secretversion)
    {
        return secretversionMapper.insertSecretversion(secretversion);
    }

    /**
     * 修改secretversion
     * 
     * @param secretversion secretversion
     * @return 结果
     */
    @Override
    public int updateSecretversion(Secretversion secretversion)
    {
        return secretversionMapper.updateSecretversion(secretversion);
    }

    /**
     * 批量删除secretversion
     * 
     * @param ids 需要删除的secretversionID
     * @return 结果
     */
    @Override
    public int deleteSecretversionByIds(Long[] ids)
    {
        return secretversionMapper.deleteSecretversionByIds(ids);
    }

    /**
     * 删除secretversion信息
     * 
     * @param id secretversionID
     * @return 结果
     */
    @Override
    public int deleteSecretversionById(Long id)
    {
        return secretversionMapper.deleteSecretversionById(id);
    }
}
